const db = uniCloud.database()
const dbCmd = db.command
exports.main = async (event, context) => {
	if (event.leixing ==1 ) { 
		const res1 = await db.collection('xiugaishuju').remove()
		return res1
	}else if (event.leixing == 2) { 
		const res1 = await db.collection('baokelist').doc(event._id).update({
			kechengshu:event.kechengshu
		})
		return res1
	}
	
	
};
